package com.hwua.tonyshop.entity.pojo;
			
import java.io.Serializable;
import java.util.Date;
/**
 * 
 * @author sunny Yang
 * @date 2018-05-24
 * @discribe CartInfo实体类，数据类型与字段 和数据库一致，
 * 不允许更改，需要更改的部分在mojo对应的AO类中进行更改
 *
 *
 */
public class CartInfo implements Serializable{
	/**
	 * 控制版本号
	 */
	private static final long serialVersionUID = 1L;
	//购物车中的id
	private Integer id;
	//用户id
	private Integer userId;
	//商品id
	private Integer goodsId;
	//商品价格
	private Integer goodsPrice;
	//商品数量
	private Integer goodsNumber;
	//添加到购物车的时间
	private String createDate;
	//购物车状态
	private String state;
	public CartInfo() {


	}
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}

	public Integer getGoodsPrice() {
		return goodsPrice;
	}

	public void setGoodsPrice(Integer goodsPrice) {
		this.goodsPrice = goodsPrice;
	}

	public Integer getGoodsNumber() {
		return goodsNumber;
	}

	public void setGoodsNumber(Integer goodsNumber) {
		this.goodsNumber = goodsNumber;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

public String toString() {
		return "CartInfo [id=" + id + ", userId=" + userId + ", goodsId=" + goodsId + ", goodsPrice=" + goodsPrice + ", goodsNumber=" + goodsNumber + ", createDate=" + createDate + ", state=" + state+"]";
	}
}